<?php 
class RssController extends AppController{
	var $name = 'Rss';
	var $uses = array();
	var $feed_url = "http://tuoitre.vn/RssFeeds.aspx?ChannelID=13";
	var $rss_item = array();
	function index(){
		App::import('Xml');
		$parsed_xml =& new XML($this->feed_url);
		$this->rss_item = $parsed_xml->toArray();
		//var_dump($this->rss_item['Rss']['Channel']['Item']);
		return  $this->rss_item['Rss']['Channel']['Item'];
		
	}
}
?>